// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';
const apiPrefix = '/web';

/** 充放电次数 GET /main/chargedischarge */
export async function mainPageControllerGetChargeAndDischarge(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.mainPageControllerGetChargeAndDischargeParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultListChargeAndDischargeCount>(`${apiPrefix}/main/chargedischarge`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 日充放电转换效率 GET /main/day/conversion */
export async function mainPageControllerGetDayConversion(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.mainPageControllerGetDayConversionParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultListStationConvertVO>(`${apiPrefix}/main/day/conversion`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 日放电深度曲线 GET /main/day/dod */
export async function mainPageControllerGetDayDod(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.mainPageControllerGetDayDodParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultListStatisticDod>(`${apiPrefix}/main/day/dod`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取事件数据 GET /main/events */
export async function mainPageControllerGetEventDatas(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.mainPageControllerGetEventDatasParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultListEventDataVO>(`${apiPrefix}/main/events`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 事件等级数量统计 GET /main/events/count */
export async function mainPageControllerGetEventInfoTypeCount(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.mainPageControllerGetEventInfoTypeCountParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultListEventTypeCount>(`${apiPrefix}/main/events/count`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 老站点运行指标 GET /main/oldstation/rundata */
export async function mainPageControllerGetOldStationRunData(options?: { [key: string]: any }) {
  return request<API.ApiResultStationRunData2VO>(`${apiPrefix}/main/oldstation/rundata`, {
    method: 'GET',
    ...(options || {}),
  });
}

/** 电站概况 GET /main/overview */
export async function mainPageControllerGetOverviewData(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.mainPageControllerGetOverviewDataParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultStationOverviewVO>(`${apiPrefix}/main/overview`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取当日功率信息 GET /main/power */
export async function mainPageControllerGetPowerReport(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.mainPageControllerGetPowerReportParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultReportTable>(`${apiPrefix}/main/power`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取首页报表信息 收益统计、充放电量统计 GET /main/report */
export async function mainPageControllerGetMainPageReport(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.mainPageControllerGetMainPageReportParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultReportVO>(`${apiPrefix}/main/report`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取首页报表信息新接口 收益统计、充放电量统计、发电用电量统计 GET /main/reports */
export async function mainPageControllerGetReport(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.mainPageControllerGetReportParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultReportTable>(`${apiPrefix}/main/reports`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 新站点运行指标 GET /main/statistics */
export async function mainPageControllerGetStatisticsData(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.mainPageControllerGetStatisticsDataParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultStationRunData1VO>(`${apiPrefix}/main/statistics`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 24小时工况 GET /main/workstate */
export async function mainPageControllerGetWorkState(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.mainPageControllerGetWorkStateParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultWorkstateVO>(`${apiPrefix}/main/workstate`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
